package com.wwl.test.demo.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author : weiwenlong
 * @date : 2021/3/17  15:39
 * @description :
 */
@RestController
@RequestMapping("demo")
public class DemoController {

    @Value("${wwl.name}")
    private String name;
    @GetMapping("index")
    public String index(){
        return name;
    }
}
